<?php
Class Countries_model extends CI_Model {
  
  function getcountries() {
    $sql = "select * from Paises where estado = 1";
    $query = $this->db->query($sql);
    return $query->result();
  }
}
?>